package com.cskaoyan.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author stone
 * @date 2022/08/08 14:37
 */
@NoArgsConstructor
@Data
public class JsonUser {
    // 可以直接使用插件 JsonFormat(Plus)
    private String username;
    private String password;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")//影响接收和响应两个过程
    private Date birthday;
    private int age;
}
